home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
600 Games
/
600games.iso
/
Acao
/
TrickyClickyBall.swf
/
scripts
/
frame_3
/
PlaceObject2_189_18
/
CLIPACTIONRECORD onClipEvent(enterFrame).as
Encoding:
Amiga
Atari
Commodore
DOS
FM Towns/JPY
Macintosh
Macintosh JP
Macintosh to JP
NeXTSTEP
RISC OS/Acorn
Shift JIS
UTF-8
Wrap
Text File
|
2005-09-27
|
498 b
|
25 lines
onClipEvent(enterFrame){
if(_root.balls == 1)
{
this._x = random(-300) + 20;
this._y = random(-300) + 20;
}
xPos = random(2) + 1;
switch(xPos)
{
case 1:
this._x += random(12) + 5;
if(this.hitTest(_root.wall2))
{
this._x -= 13;
}
break;
case 2:
this._x -= random(12) + 5;
if(this.hitTest(_root.wall2))
{
this._x += 13;
}
}
}